package com.utils.httpclient;

import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;

import java.net.URI;

/**
 * HTTPDELETE 功能增强 支持BODY传参
 * 
 * @author JIANGLONG
 *
 */
public class HttpDeleteWithBody  extends HttpEntityEnclosingRequestBase {
	public static final String METHOD_NAME = "DELETE";
	@Override
	public String getMethod() {
		return METHOD_NAME;
	}
	public HttpDeleteWithBody(final String uri) {
        super();
        setURI(URI.create(uri));
    }
    public HttpDeleteWithBody(final URI uri) {
        super();
        setURI(uri);
    }
    public HttpDeleteWithBody() { super(); }
}
